package com.yjd.bi.fund.service;

import com.yjd.comm.base.enums.DbWREnums;
import com.yjd.comm.base.service.IBaseService;
import com.yjd.comm.util.DateUtil;
import com.yjd.comm.util.FrameUtil;
import com.yjd.comm.util.NumberUtil;

import java.util.List;

import com.yjd.bi.fund.model.BiFundsStatisticsMinuteModel;
import com.yjd.bi.report.model.EChartsModel;

/**
 * <b>description</b>：资金量记录业务接口<br>
 * <b>time</b>：2016-04-18 10:54:49 <br>
 * <b>author</b>：  chenpengfei@yijeidai.com
 */
public interface IBiFundsStatisticsMinuteService extends IBaseService {
	/**
	 * 插入
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public BiFundsStatisticsMinuteModel insert(BiFundsStatisticsMinuteModel model) throws Exception;

	/**
	 * 更新,大于等于1表示成功，其他失败
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public int update(BiFundsStatisticsMinuteModel model) throws Exception;

	/**
	 * 根据id删除,大于等于1表示成功，其他失败
	 * 
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public int delete(long id) throws Exception;
	
	/**
	 * 根据日期获取时段数据
	 * @param day
	 * @param field
	 * @return
	 * @throws Exception
	 */
	public EChartsModel getDates(Long day,String field) throws Exception ;

}
